import type { IMenuRouteNode } from '@/types/store/user.js'

export const adminRoutes: IMenuRouteNode[] = [
  {
    name: 'myHome',
    path: '/myhome',
    redirect: '/myhome/home',
    meta: {
      isAuth: false,
      title: '我的首页',
      icon: 'Document',
      hidden: true,
    },
    component: () => import('@/views/layout/index.vue'),
    children: [
      {
        name: 'HomePage',
        path: 'home',
        component: () => import('@/views/home/index.vue'),
        meta: {
          hidden: true,
        },
      },
    ],
  },
  {
    path: '/ConfigPermission',
    component: () => import('@/views/layout/index.vue'),
    meta: { title: '权限配置', icon: 'Folder', index: 2 },
    name: '权限配置',
    children: [
      {
        path: 'MenuInfo',
        name: 'MenuInfo',
        component: () => import('@/views/ConfigPermission/MenuInfo/index.vue'),
        meta: {
          title: '菜单权限',
          icon: 'List',
          btns: [],
          index: 0,
        },
      },
      {
        path: 'RoleInfo',
        name: 'RoleInfo',
        component: () => import('@/views/ConfigPermission/RoleInfo/index.vue'),
        meta: { title: '角色权限', icon: 'List', btns: [], index: 1 },
      },
      {
        path: 'BtnInfo',
        name: 'BtnInfo',
        component: () => import('@/views/ConfigPermission/BtnInfo/index.vue'),
        meta: { title: '按钮权限', icon: 'List', btns: [], index: 2 },
      },
      {
        path: 'DataInfo',
        name: 'DataInfo',
        component: () => import('@/views/ConfigPermission/DataInfo/index.vue'),
        meta: { title: '数据权限', icon: 'List', btns: [], index: 3 },
      },
    ],
  },
  {
    name: 'Menu1',
    path: '/menu1',
    component: () => import('@/views/layout/index.vue'),
    meta: {
      isAuth: false,
      title: '菜单一',
      icon: 'Document',
    },
    children: [
      {
        path: 'Secondary1',
        component: () => import('@/views/table/vxeTableOne.vue'),
        name: 'Secondary1',
        meta: {
          isAuth: false,
          title: 'vxe表格',
          icon: 'Document',
        },
      },
      {
        path: 'Secondary4',
        component: () => import('@/views/table/vxeTableBaseV2.vue'),
        name: 'Secondary4',
        meta: {
          isAuth: false,
          title: 'vxe表格v2',
          icon: 'Document',
        },
      },
      {
        path: 'Secondary2',
        component: () => import('@/views/table/spreadTable.vue'),
        name: 'Secondary2',
        meta: {
          isAuth: false,
          title: 'spread表格',
          icon: '',
        },
      },
      {
        path: 'Secondary3',
        component: () => import('@/views/someFun/star/index.vue'),
        name: 'Secondary3',
        meta: {
          isAuth: false,
          title: '星空',
          icon: '',
        },
      },
      {
        path: 'canvas',
        component: () => import('@/views/canvas/index.vue'),
        name: 'canvas',
        meta: {
          isAuth: false,
          title: 'canvas',
          icon: '',
        },
      },
      {
        path: 'svg',
        component: () => import('@/views/canvas/svg.vue'),
        name: 'svg',
        meta: {
          isAuth: false,
          title: 'svg',
          icon: '',
        },
      },
    ],
  },
]
